﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace projectQLDV
{
    public partial class frmThongKe : DevExpress.XtraEditors.XtraForm
    {
        public frmThongKe()
        {
            InitializeComponent();
        }
        public void GridViewdoanvien(DataTable u)
        {
            DataTable dtAccount = new DataTable();
            dtAccount = u;
            dtAccount.Columns.Add("index", typeof(int));
            this.gridControlDoanVien.DataSource = dtAccount;
            for (int i = 0; i < this.gridViewDoanVien.RowCount; i++)
            {
                this.gridViewDoanVien.SetRowCellValue(i, "index", i + 1);
            }
            
        }
    }
}